<?php if (!defined('THINK_PATH')) exit(); ?>
<?php require "./" . APP_NAME . "/Public/fckeditor/fckeditor.php"; ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK 
href="<?php echo BASE_DIR; ?>top/admincp.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3268" name=GENERATOR>
<script language="javascript" src="<?php echo BASE_DIR; ?>js/jquery.js"></script>
<script language="javascript">
$(document).ready(function(){
	$("#Submit2").click(function(){
		$.ajax({
		   type: "POST",
		   url: "<?php echo url('GetEnterpriseInfo','Enterprise'); ?>",
		   data: "name="+$("#enter_id").val(),
		   success: function(msg){
			 $("#ListEnterprise").replaceWith(msg);
		   }
		}); 
	})
})
function XXX(val){
	$("#enter_id").val(val);
}
</script>
</HEAD>
<BODY topMargin=10>
<DIV id=append_parent></DIV>
<TABLE cellSpacing=6 cellPadding=2 width="100%" border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE class=guide cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD>企业管理&nbsp;»&nbsp;企业产品&nbsp;»&nbsp;创建新产品</TD>
        </TR></TBODY></TABLE><BR>
      <FORM 
      action="" method=post enctype="multipart/form-data" name=settings id=settings>
        <TABLE class=tableborder cellSpacing=0 cellPadding=0 width="100%" 
border=0>
        <TBODY>
        <TR class=header>
          <TD colSpan=2>创建新产品<IMG 
            id=menuimg_b8e6f4fa493903c4 
            style="MARGIN-TOP: -12px; FLOAT: right; MARGIN-RIGHT: 8px" 
            src="<?php echo BASE_DIR; ?>top/menu_reduce.gif" border=0> </TD></TR>
        <TBODY id=menu_b8e6f4fa493903c4>
        <TR>
          <TD class=altbg1 width="39%"><B>产品所属企业:</B><BR>
            <SPAN 
            class=smalltxt>如果不知道企业编号可以输入企业名称后进行模糊查询</SPAN></TD>
          <TD width="61%" class=altbg2><INPUT
            name=enter_id id="enter_id" size=50>
            <INPUT name=Submit2 type=button class=button id="Submit2" value="模 糊 查 询">
			<div id="ListEnterprise"></div>
			</TD>
        </TR>
        <TR>
          <TD class=altbg1 width="39%"><B>产品名称:</B><BR>
            <SPAN 
            class=smalltxt>产品的名称，最大输入字符不得超过90个</SPAN></TD>
          <TD class=altbg2><INPUT 
            name=name id="name" size=50> </TD></TR>
        <TR>
          <TD class=altbg1 width="39%"><B>产品图片:</B><BR>
          请选择上传的图片，不要超过260K</TD>
          <TD class=altbg2><input type="file" name="file"></TD>
        </TR>
        <TR>
          <TD width="39%" valign="top" class=altbg1><B>视频代码:</B><BR>
          产品的视频播放代码</TD>
          <TD class=altbg2><TEXTAREA id=videocode name=videocode rows=6 cols=50></TEXTAREA></TD>
        </TR>
        <TR>
          <TD width="39%" valign="top" class=altbg1><B>产品介绍:</B><BR>
            <SPAN 
            class=smalltxt>产品的介绍</SPAN></TD>
          <TD class=altbg2>
<?php
$oFCKeditor = new FCKeditor('content') ;
$oFCKeditor->BasePath = "/" . APP_NAME . "/Public/fckeditor/" ;
$oFCKeditor->Value = '' ;
$oFCKeditor->Height='500px';
$oFCKeditor->Create() ;
?>
		  </TD></TR></TBODY></TABLE>
        <BR>
      <CENTER>
        <INPUT name=Submit type=submit class=button id="Submit" value="确 认 创 建">
      </CENTER></FORM></TD></TR></TBODY></TABLE><BR><BR>
<DIV class=footer>
<HR width="80%" color=#9db3c5 noShade SIZE=0>
Powered by <A style="COLOR: #666" href="http://www.ThankPHP.com/" 
target=_blank><B>ThankPHP!</B> 0.1.0</A> &nbsp;© 2009-2010, <B><A 
style="COLOR: #666" href="http://www.ThankPHP.com/" target=_blank>ThankPHP 
Inc.</A></B><SPAN class=smalltxt></SPAN></DIV>
</BODY></HTML>
